
export default {
  namespaced: true,
  state : {
    UserInfo: {},
  },
  mutations: {
    setUserInfo(state, UserInfo) {
      state.UserInfo = UserInfo
      localStorage.setItem('id', UserInfo.id)
      localStorage.setItem('name', UserInfo.name)
      localStorage.setItem('class', UserInfo.class)
    },

  }
}
